package com.qdlc.p2p.biz.service;

import java.util.Map;

import com.qdlc.p2p.dal.common.model.jpa.PageDataList;
import com.qdlc.p2p.dal.dto.Notice;
import com.qdlc.p2p.dal.model.NoticeModel;

public interface NoticeService {
	
	/**
	 * App 获取验证码
	 * @param receiveAddr
	 * @param type
	 * @param description
	 */
	void sendNotice(String receiveAddr, String type,String description,String code);

	/**
	 * 发送通知的对外接口，用于定时器调用，实际发送通知
	 * 
	 * @param notice
	 */
	void sendNotice(Notice notice);

	/**
	 * @param model
	 * @param pageNumber
	 * @param pageSize
	 * @return
	 */
	PageDataList<NoticeModel> noticeList(NoticeModel model, int pageNumber, int pageSize);

	/**
	 * @param id
	 * @return
	 */
	Notice findById(long id);

}
